<div th:fragment="header">
    <link th:href="@{/layui-v2.5.6/layui/css/layui.css}" rel="stylesheet"/>
</div>

<!-- 通用JS -->
<div th:fragment="footer">
    <script th:src="@{/jq/jquery-1.9.1.js}"></script>
    <script th:src="@{/layui-v2.5.6/layui/layui.all.js}"></script>
</div>

<!--使用方式
<html xmlns:th="http://www.thymeleaf.org">

 <th:block th:include="common/common :: header"/>
 <th:block th:include="common/common :: footer"/>
-->